package com.hantanger.weblog.model;

import com.googlecode.objectify.annotation.Cache;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;

@Cache
@Entity
public class Setting {
	
	@Id private String name;

	private String spaceName;

	private String description;
	
	//博客url地址,如http://www.hantanger.com，其他地址的基地址
	private String spaceUrl;
	
	private String googleEmail;
	
	private String googlePassport;
	
	//全局日志分类id串
	private String globalClassIdStr;
	
	//是否被初始化过
	private boolean isInit;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSpaceName() {
		return spaceName;
	}

	public void setSpaceName(String spaceName) {
		this.spaceName = spaceName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	public String getGoogleEmail() {
		return googleEmail;
	}

	public void setGoogleEmail(String googleEmail) {
		this.googleEmail = googleEmail;
	}

	public String getGooglePassport() {
		return googlePassport;
	}

	public void setGooglePassport(String googlePassport) {
		this.googlePassport = googlePassport;
	}

	public String getGlobalClassIdStr() {
		return globalClassIdStr;
	}

	public void setGlobalClassIdStr(String globalClassIdStr) {
		this.globalClassIdStr = globalClassIdStr;
	}

	public String getSpaceUrl() {
		if(spaceUrl == null){
			return "";
		}
		return spaceUrl;
	}

	public void setSpaceUrl(String spaceUrl) {
		this.spaceUrl = spaceUrl;
	}

	public boolean isInit() {
		return isInit;
	}

	public void setInit(boolean isInit) {
		this.isInit = isInit;
	}
}
